package manage.domain.sysuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("tb_sys_user")
public class SysUser extends BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String username;

    private String nickname;

    private String password;

}
/**
 * create table tb_sys_user (
 *     id bigint unsigned comment '用户Id 主键',
 *     username varchar(20) comment '用户名' NOT NULL ,
 *     password char(60) comment '密码' NOT NULL ,
 *     create_time datetime not null comment '创建时间',
 *     update_time datetime comment '更新时间',
 *
 *     unique key `idx_username` (`username`),
 *     primary key (id)
 * )
 */
